package com.aizuda.snailjob.enums;

import lombok.Getter;

/**
 * Created by xuxueli on 17/3/10.
 */
@Getter
public enum ExecutorRouteStrategyEnum {

    FIRST(5),
    LAST(6),
    ROUND(4),
    RANDOM(2),
    CONSISTENT_HASH(1),
    LEAST_FREQUENTLY_USED(4), // sj 暂时未提供,则使用轮询替换
    LEAST_RECENTLY_USED(3),
    FAILOVER(4),
    BUSYOVER(4),
    SHARDING_BROADCAST(4);

    ExecutorRouteStrategyEnum(int sjRoute) {
        this.sjRoute = sjRoute;
    }

    private final int sjRoute;
}
